/*******************************************************************************
 * Copyright (c) 2013 Zero Square LLC.
 * All rights reserved. This program and the accompanying materials
 * are made available under the terms of the Zero Square LLC. Version 1
 * which accompanies this distribution
 ******************************************************************************/
package com.zsqr.dashboard.domain;
import javax.persistence.Id;
import java.io.Serializable;
import java.util.ArrayList;
import java.util.Iterator;
import java.util.List;
import com.zsqr.dashboard.domain.UserCardEntity;
import javax.persistence.Entity;
import javax.persistence.Table;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;

//import com.zsqr.dashboard.commons.domain.BaseEntity;

/**
 * To fetch credit card data corresponding to a user e-mail ID
 * @author satya
 *
 */

@XmlRootElement(name="cards")
public class UserCardList implements Serializable {

      private static final long serialVersionUID = 9102546797346691043L;
     //@XmlAttribute
      private List<UserCardEntity> cardInfo = null;
      
	 /*public List<UserCardEntity> getUserCardList() {
			return cardInfo;
	  }
	  public void setUserCardList(List<UserCardEntity> cardList) {
		  
		  cardInfo =  new ArrayList<UserCardEntity>();
		  cardInfo.addAll(cardList);
		  //Iterator<UserCardEntity> iterator = cardList.iterator();
	    	//while (iterator.hasNext()) {
	    		//System.out.println(iterator.next());
	    		//cardInfo.add(iterator.next());
	    			
	    	//}
	  }*/
      
	public List<UserCardEntity> getCardInfo() {
		return this.cardInfo;
	}
	public void setCardInfo(List<UserCardEntity> cardInfo) {
		this.cardInfo =  new ArrayList<UserCardEntity>(); 
		this.cardInfo.addAll(cardInfo);
	}
      
      
}
